package com.ecloud.support.generator.service.iface;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ecloud.common.base.result.Result;
import com.ecloud.support.generator.model.dto.DbConfigDto;
import com.ecloud.support.generator.model.entity.DbConfigPo;

public interface IDbConfigService extends IService<DbConfigPo> {

    /**
     * 测试连接
     *
     * @author LiuGangQiang Create in 2021/05/06
     * @param dto 入参
     * @return {@link Result}
     */
    Result<?> test(DbConfigDto dto);

    /**
     * 新增数据
     *
     * @author LiuGangQiang Create in 2021/04/01
     * @param dto 入参
     * @return {@link Result}
     */
    Result<?> insert(DbConfigDto dto);

    /**
     * 删除数据
     *
     * @author LiuGangQiang Create in 2021/04/01
     * @param id ID
     * @return {@link Result}
     */
    Result<?> delete(DbConfigDto dto);

    /**
     * 修改数据
     *
     * @author LiuGangQiang Create in 2021/04/01
     * @param id  ID
     * @param dto 入参
     * @return {@link Result}
     */
    Result<?> update(DbConfigDto dto);

    /**
     * 查询列表
     *
     * @author LiuGangQiang Create in 2021/04/01
     * @param dto 入参
     * @return {@link Result}
     */
    Result<?> queryList(DbConfigDto dto);
}
